Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add name component #20798

Merged
merged 11 commits into from
Sep 18, 2023
Merged

Add name component #20798

merged 11 commits into from
Sep 18, 2023

Conversation

matthewwalsh0
Copy link
Member

@matthewwalsh0 matthewwalsh0 commented Sep 8, 2023

Explanation

Add the Name component to display a saved petname or a proposed name, for raw values such as Ethereum account addresses.

Add the nested NameDetails component when the Name component is clicked, which includes a modal containing a text field and dropdown of all available proposed names.

Add the FormComboField component to provide a free entry text field with a dropdown of suggested options including both primary and secondary text.

No functional usages yet, just the associated stories including documentation.

Screenshots

Name

name_proposed name_saved

NameDetails

name_details name_details_saved

FormComboField

form_combo_field

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2023

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@matthewwalsh0 matthewwalsh0 added the team-confirmations-system DEPRECATED: please use "team-confirmations" label instead label Sep 8, 2023
@matthewwalsh0 matthewwalsh0 marked this pull request as ready for review September 8, 2023 14:50
@matthewwalsh0 matthewwalsh0 requested review from a team as code owners September 8, 2023 14:50
@metamaskbot
Copy link
Collaborator

Builds ready [dd4f2a5]
Page Load Metrics (1960 ± 92 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1292171622412
domContentLoaded15782203196019292
load15792203196019292
domInteractive15782202196019292
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 91 Bytes (0.00%)
  • ui: 19.26 KiB (0.24%)
  • common: 1.28 KiB (0.03%)

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 87.20% and project coverage change: +0.08% 🎉

Comparison is base (f315a2b) 68.17% compared to head (5372d18) 68.24%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20798      +/-   ##
===========================================
+ Coverage    68.17%   68.24%   +0.08%     
===========================================
  Files          998     1002       +4     
  Lines        39966    40130     +164     
  Branches     10686    10732      +46     
===========================================
+ Hits         27243    27386     +143     
- Misses       12723    12744      +21     
Files Changed Coverage Δ
ui/store/actions.ts 43.06% <0.00%> (-0.18%) ⬇️
ui/selectors/selectors.js 86.44% <66.67%> (-0.18%) ⬇️
...omponents/ui/form-combo-field/form-combo-field.tsx 88.33% <88.33%> (ø)
ui/components/app/name/name.tsx 91.67% <91.67%> (ø)
.../components/app/name/name-details/name-details.tsx 95.56% <95.56%> (ø)
ui/hooks/useName.ts 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Collaborator

Builds ready [daf6902]
Page Load Metrics (1642 ± 72 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint109168137178
domContentLoaded14322031164215172
load14322031164215172
domInteractive14322031164215172
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 91 Bytes (0.00%)
  • ui: 19.26 KiB (0.24%)
  • common: 1.28 KiB (0.03%)

@metamaskbot
Copy link
Collaborator

Builds ready [cbe4188]
Page Load Metrics (1667 ± 44 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint115188143199
domContentLoaded1504190716669144
load1504190716679144
domInteractive1504190716669144
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 91 Bytes (0.00%)
  • ui: 19.26 KiB (0.24%)
  • common: 1.28 KiB (0.03%)

vinistevam
vinistevam previously approved these changes Sep 14, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [5372d18]
Page Load Metrics (1707 ± 84 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1121861522010
domContentLoaded14572249170417684
load14572249170717684
domInteractive14572249170417684
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 91 Bytes (0.00%)
  • ui: 19.26 KiB (0.24%)
  • common: 1.28 KiB (0.03%)

@matthewwalsh0 matthewwalsh0 merged commit c0e121e into develop Sep 18, 2023
@matthewwalsh0 matthewwalsh0 deleted the feat/name-component branch September 18, 2023 09:13
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 18, 2023
@holantonela
Copy link

🔥

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-confirmations-system DEPRECATED: please use "team-confirmations" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants